<include file="Public/header" />

	<body>
		<div class="mui-content">
                    <header class="mui-bar mui-bar-nav pub_head">
		        <a class="mui-action-back mui-icon mui-pull-left iconfont icon-left" href="javascript:history.go(-1)"></a>
		        <h1 class="mui-title">{$member.name}</h1>
		        <a class="mui-icon mui-pull-right iconfont icon-house1" style="font-size:26px;padding-top:0.5rem;" href='/'></a>
		    </header>
			<!--商品详情页轮播图 start-->
			<div class="swiper-container one-container" style="margin-top:2.78rem;">
				<div class="swiper-wrapper">
					<volist name='list' id='val'>
						<div class="swiper-slide index_swiper_img">
							<a href="#">
								<img src="{$val['pic']}">
							</a>
						</div>
					</volist>
					<if condition="empty($list)">
						<div class="swiper-slide index_swiper_img">
							<a href="#">
								<img src="__PUBLIC__/kinderGarent/src/images/banner2.jpg">
							</a>
						</div>
						<div class="swiper-slide index_swiper_img">
							<a href="#">
								<img src="__PUBLIC__/kinderGarent/src/images/banner2.jpg">
							</a>
						</div>
						<div class="swiper-slide index_swiper_img">
							<a href="#">
								<img src="__PUBLIC__/kinderGarent/src/images/banner2.jpg">
							</a>
						</div>
					</if>
					<if condition="count($list) == 1">
						<div class="swiper-slide index_swiper_img">
							<a href="#">
								<img src="__PUBLIC__/kinderGarent/src/images/banner2.jpg">
							</a>
						</div>
						<div class="swiper-slide index_swiper_img">
							<a href="#">
								<img src="__PUBLIC__/kinderGarent/src/images/banner2.jpg">
							</a>
						</div>
				    </if>
					<if condition="count($list) == 2">
						<div class="swiper-slide index_swiper_img">
							<a href="#">
								<img src="__PUBLIC__/kinderGarent/src/images/banner2.jpg">
							</a>
						</div>
				    </if>
				</div>
				<div class="swiper-pagination"></div>
			</div>
			<!--商品详情页轮播图 end-->
			
				<div class="swiper-container  sec-container index_notice" style="overflow:hidden; width: 100%;height:3rem">
					<div class="swiper-wrapper">
					<?php if(!empty($notice)){ foreach($notice as $k=>$v){?>
							<div class="swiper-slide index_swiper_img">
								<a href="<?php echo U('Notice/detail',array('id'=>$v['id'])) ?>">
									<span style='color:#909090;'>通知公告：<?php echo $v['title']?></span>
								</a>
							</div>
					<?php }}else{ ?>
							<div class="swiper-slide index_swiper_img">
								<a href=" {:U('Index/index_education',array('uid'=>$member['uid']))}">
									<span style='color:#909090;'>通知公告：{$member['name']}上线了！</span>
								</a>
							</div>
					<?php } ?>
							
					</div>
				</div> 
			
			<ul class="index_list">
				<li style="background: #fe7660;">
                                    <a href="{:U('Notice/index',array('uid'=>$member['uid']))}">
						<i class="iconfont icon-yinliang"></i>
						<span>通知公告</span>
					</a>
				</li>
				<li style="background: #54d8c1;">
					<a href="{:U('Class/lst',array('uid'=>$member['uid']))}">
						<i class="iconfont icon-richeng"></i>
						<span>今日课表</span>
					</a>
				</li>
				<li style="background: #ffd43a;">
					<a href="{:U('Food/index',array('uid'=>$member['uid']))}">
						<i class="iconfont icon-food"></i>
						<span>今日食餐</span>
					</a>
				</li>
				<li style="background: #fea062;">
					<a href="{:U('WonderfulMoment/index',array('uid'=>$member['uid']))}">
						<i class="iconfont icon-xiazai"></i>
						<span>精彩瞬间</span>
					</a>
				</li>
				<li style="background: #76b6fd;">
                                    <a href="{:U('Teacher/index',array('uid'=>$member['uid']))}">
						<i class="iconfont icon-xingxing01"></i>
						<span>明星教师</span>
					</a>
				</li>
				<li style="background: #8ecb01;">
					<a href="{:U('ChildExperience/index',array('uid'=>$member['uid']))}">
						<i class="iconfont icon-hongqi" style="font-size: 2.5rem;"></i>
						<span>幼儿心得</span>
					</a>
				</li>
				<li style="background: #cb6cfc;">
					<a href="{:U('User/getApply',array('uid'=>$member['uid']))}">
						<i class="iconfont icon-woyaobaoming"></i>
						<span>学校报名</span>
					</a>
				</li>
				<li style="background: #fd6dcf;">
					<a href="{:U('Intro/index',array('uid'=>$member['uid']))}">
						<i class="iconfont icon-youer" style="font-size: 2.5rem;"></i>
						<span>学校详情</span>
					</a>
				</li>
			</ul>
		</div>
		<script type="text/javascript" charset="UTF-8">
			$(function() {
				var swiper = new Swiper(".one-container", {
					//控制轮播图的滚动方向
					direction: "horizontal", //方向:水平方向 
					//		    direction:"vertical",//方向:竖直方向 
					//控制轮播图是否无限滚动. true循环, false不循环.
					loop: true,
					//是否需要左右按钮
					//	nextButton: ".swiper-button-next",
					//	prevButton: ".swiper-button-prev",
					//是否需要分页器
					pagination: ".swiper-pagination",
					//是否开启自动播放(后面加毫秒数)
					autoplay: 1000,
					//切换控制效果(cube, fade, overflow, flip)
					effect: 'overflow',
					//检测当前滑动到第几页
					onSlideChangeEnd: function(swiper) {
						//		console.log(swiper.activeIndex);
					}
				});
				new Swiper(".sec-container", {
					//控制轮播图的滚动方向
					direction: "vertical", //方向:水平方向 
					//		    direction:"vertical",//方向:竖直方向 
					//控制轮播图是否无限滚动. true循环, false不循环.
					loop: true,
					//是否需要左右按钮
					//	nextButton: ".swiper-button-next",
					//	prevButton: ".swiper-button-prev",
					//是否需要分页器
					//pagination: ".swiper-pagination",
					//是否开启自动播放(后面加毫秒数)
					autoplay: 3000,
					//切换控制效果(cube, fade, overflow, flip)
					effect: 'overflow',
					//检测当前滑动到第几页
					onSlideChangeEnd: function(swiper) {
						//		console.log(swiper.activeIndex);
					}
				});
				

		
			});
		 
		</script>
	</body>
</html>